import axios from '@/libs/api.request'
const prefix = '/sales/gamecoupon'
// 次卡券包列表
export const getSubcardLists = data => axios.request({
  url: `${prefix}/list`,
  method: 'post',
  data
})
// 次卡券包详情
export const getSubcardDetail = data => axios.request({
  url: `${prefix}/query`,
  method: 'post',
  data
})
// 次卡券包新增编辑
export const saveSubcard = data => axios.request({
  url: `${prefix}/save`,
  method: 'post',
  data
})
// 次卡券包审核
export const reviewSubcard = data => axios.request({
  url: `${prefix}/review`,
  method: 'post',
  data
})
// 次卡券包删除
export const deleteSubcard = data => axios.request({
  url: `${prefix}/delete`,
  method: 'post',
  data
})
// 次卡券包下架
export const pullOffSubcard = data => axios.request({
  url: `${prefix}/pull_off_shelves`,
  method: 'post',
  data
})
// 次卡券包销售渠道
export const getSalesChannels = data => axios.request({
  url: `${prefix}/sales_channel`,
  method: 'post',
  data
})
// 次卡券包可选项目
export const getGames = data => axios.request({
  url: `${prefix}/machine/list_by_shop_id`,
  method: 'post',
  data
})
